import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * @Classname MyInvoke
 * @Description
 * @Date 2020-09-03 19:17
 * @Created by myc
 */
public class MyInvoke<T> implements InvocationHandler {

    public MyInvoke(T obj){
        this.obt = obj;
    }

    private T obt;
    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        return method.invoke(obt,args);
    }
}
